popiart-server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
579 B

import { notFound } from "next/navigation";
import { SiteChrome } from "@/components/site-chrome";
import { getDictionary, isLocale, type Locale } from "@/lib/site-content";
export default async function LocaleLayout({
children,
params,
}: Readonly<{
children: React.ReactNode;
params: Promise<{ locale: string }>;
}>) {
const { locale } = await params;
if (!isLocale(locale)) {
notFound();
}
const dictionary = getDictionary(locale as Locale);
return (
<SiteChrome dictionary={dictionary} locale={locale}>
{children}
</SiteChrome>
);
}